package cn.itsource.crm.domain;

import lombok.Data;

import java.util.List;

@Data
public class Department extends BaseDomain {

    /*部门编号*/
    private String sn;

    private String name;

    private Employee manager;

    /*上级部门*/
    private Department parent;

    /*下级部门*/
    List<Department> children;

    /*路径*/
    private String dirPath;

    /*状态,0禁用,1启用*/
    private Boolean state=true;

    /*所属租户*/
    private Tenant tenant;

    /*保存用的字段*/
    private Long parentId;
    /*保存用的字段*/
    private Long managerId;
    /*保存用的字段*/
    private Long tenantId;

}
